package com.kynnnn.cloud.mybatis_interceptor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kynnnn.cloud.mybatis_interceptor.annotation.EncryptDecryptClass;
import com.kynnnn.cloud.mybatis_interceptor.annotation.EncryptDecryptField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author Zhudiwei
 * @Description TODO
 * @createTime 2021年09月03日
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_person")
@EncryptDecryptClass
@Accessors(chain = true)
public class Person {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String name;

    @EncryptDecryptField
    private String idNumber;

    @EncryptDecryptField
    private String phone;

}
